// 类型类型约束
import { Dispatch } from "react";


// 定义Context类型 
export interface $globalContextType {
  state: $globalStateInterface;
  dispatch: Dispatch<$globalActionType>;
};

// 定义State类型 
export interface $globalStateInterface {
  isLoading: boolean;
}

// 定义Action类型 
export type $globalActionType =
  | { type: 'SET_LOADING'; payload: boolean };

// label & key 字典类型 
export interface $labelDictInterface {
  label: string,
}

